package com.zfc.myproject.controller;


import com.zfc.myproject.json.Jsons;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class VueTest {

    @CrossOrigin
    @GetMapping("/test")
    @ResponseBody
    public String jsons() {
        Jsons jsons = new Jsons();
        return jsons.json;
    }
}
